import Vue from 'vue'
import Confirm from './Confirm.vue'

const constroller =Vue.extend(Confirm)

const  ConfirmComponent=(options)=>{
    options.callbackFun= options.callbackFun;
    const vm = new constroller({
        data:options
    })
    vm.$mount()
    document.body.appendChild(vm.$el)
    vm.visible = true
    return vm
}

export default ConfirmComponent